-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add Flashbots Provider, ported from builder #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e971033
to
0e1ff7a
Compare
0e1ff7a
to
e601de2
Compare
i have run the integration test and verified that it passes |
src/utils/flashbots.rs
Outdated
|
||
let value = self.compute_signature(&body_bz).await?; | ||
|
||
let client = reqwest::Client::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might want to move this into the struct itself to let people instantiate the Flashbots provider with a custom client, akin to how we're doing it on the tx cache client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now, i'm just porting. we can make improvements too if we want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you prefer :) i think we want to do this regardless, but i'm fine with a followup pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll get it in rq, might as well while here
09d6df8
to
25b7a62
Compare
src/utils/flashbots.rs
Outdated
|
||
let value = self.compute_signature(&body_bz).await?; | ||
|
||
let client = reqwest::Client::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you prefer :) i think we want to do this regardless, but i'm fine with a followup pr
25b7a62
to
2a7ee26
Compare
2a7ee26
to
8d390e7
Compare
Add the flashbots provider, ported from the builder